package com.zhuzg.service.impl;



import com.zhuzg.mapper.AccountMapper;
import com.zhuzg.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

//
@Service
public class AccountServiceImpl implements AccountService {

    @Autowired
    AccountMapper accountMapper;

    @Override
    public int deduceMoney(Integer userId, BigDecimal amount) {
        return accountMapper.update(userId,amount);
    }
}
